package cn.edu.sgu.www.mhxysy.dto.xingyin;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class XingyinViewAttributeDTO implements DataTransferObject {

	@ApiModelProperty(value = "ID")
	private Integer id;

	/**
	 * 属性下限
	 */
	@Positive(message = "属性下限" + CustomMessages.ILLEGAL)
	@NotNull(message = "属性下限" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "属性下限", required = true)
	private Integer min;

	/**
	 * 属性上限
	 */
	@Positive(message = "属性上限" + CustomMessages.ILLEGAL)
	@NotNull(message = "属性上限" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "属性上限", required = true)
	private Integer max;

	/**
	 * 属性类型
	 */
	@Positive(message = "属性类型" + CustomMessages.ILLEGAL)
	@NotNull(message = "属性类型" + CustomMessages.NOT_NULL)
	@ApiModelProperty(value = "属性类型", required = true)
	private Integer type;

	/**
	 * 星印类型ID
	 */
	@Positive(message = "星印类型ID" + CustomMessages.ILLEGAL)
	@NotNull(message = "星印类型" + CustomMessages.ID_NOT_NULL)
	@ApiModelProperty(value = "星印类型ID", required = true)
	private Integer xingyinId;

	/**
	 * 属性ID
	 */
	@Positive(message = "属性ID" + CustomMessages.ILLEGAL)
	@NotNull(message = CustomMessages.PROPERTY_ID_NOT_NULL)
	@ApiModelProperty(value = "属性ID", required = true)
	private Integer propertyId;
}